package com.anxuan.demo.test;

import com.anxuan.demo.model.Student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class aopTest1 {
    public static void main(String[] args) {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("springAop.xml");
        Student student = ctx.getBean(Student.class);
        student.print();
        System.out.println(student.getClass());

    }
}
